package com.ics.web.controller.travelstar.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ics.framework.util.PageUtil;
import com.ics.web.controller.travelstar.domain.TravelstarContact;
import com.ics.web.controller.travelstar.dto.TravelstarContactDTO;
import com.ics.web.controller.travelstar.mapper.TravelstarContactMapper;
import com.ics.web.controller.travelstar.service.TravelstarContactService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shaoly
 * @description
 * @ClassName TravelstarContactServiceImpl.java
 * @createTime 2024年12月13日 11:27:49
 */
@Service
@Slf4j
public class TravelstarContactServiceImpl extends ServiceImpl<TravelstarContactMapper, TravelstarContact>
    implements TravelstarContactService {


    @Override
    public IPage<TravelstarContact> listPage(TravelstarContactDTO formDTO) {
        LambdaQueryWrapper<TravelstarContact> wrapper = Wrappers.lambdaQuery();
        wrapper.orderByAsc(TravelstarContact::getCOrder);
        return this.baseMapper.selectPage(PageUtil.getPage(formDTO), wrapper);
    }
}
